<template>
  <div class="no-data">
    <div v-if="showImg">
      <img src="../../assets/images/no-data.png"/>
    </div>
    <p v-html="msg"></p>
  </div>
</template>
<!--没有数据页面-->
<script>
  export default {
    name: 'no-data',
    props: {
      showImg: {
        type: Boolean,
        default: true
      },
      msg: {
        type: String,
        default: '暂无数据'
      }
    }
  }
</script>

<style scoped lang="scss">
  .no-data {
    text-align: center;

    div {
      img {
        width: 240px;
        height: 150px;
      }
    }

    p {
      font-size: 16px;
      font-family: PingFangSC-Regular;
      font-weight: 400;
      color: rgba(167, 174, 188, 1);
      line-height: 22px;
      text-align: center;
      margin-top: 18px;
    }
  }
</style>
